package com.deep.deepenterpise.dao;

import com.deep.deepenterpise.model.entity.DrDangerHistorySlave;
import com.deep.deepenterpise.model.to.unit.DrDangerSlaveTo;
import com.deep.deepenterpise.model.vo.unit.DrDangerHistorySlaveVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author xyz
 * @description 针对表【dr_danger_history_slave(DR隐患子表)】的数据库操作Mapper
 * @createDate 2024-06-23 08:33:57
 * @Entity com.deep.deepenterpise.model.entity.DrDangerHistorySlave
 */
public interface DrDangerHistorySlaveMapper {
    void insert(DrDangerHistorySlave drDangerHistorySlave);

    List<DrDangerHistorySlaveVo> findByDrDangerSlaveTo(DrDangerSlaveTo drDangerSlaveTo);

    DrDangerHistorySlave findByDrDangerSlaveNumAndDrStatus(@Param("drDangerSlaveNum") String drDangerSlaveNum,
                                                           @Param("drStatus") Integer drState);

    void update(DrDangerHistorySlave dangerHistorySlave);
}




